#include <Wire.h>

// I2C Communication

// CHECK THE ORDER OF THE TWO BYTES RECEIVED BEFORE FINISHING

#include "MMGi2c.h"

#define ADDRESS1 0x01
#define ADDRESS2 0x02

unsigned char* pmmg;
unsigned short MMG;

void setup()
{
  initialiseMMG();
}

void loop()
{
  short MMG1=readMMG(ADDRESS1);
  short MMG2=readMMG(ADDRESS2);
}





